package thinkingInJava.enumerated;

//: enumerated/NotClasses.java
//{Exec: javap -c LikeClasses}
import static thinkingInJava.YTool.YPrint.*;

enum LikeClasses {
WINKEN { void behavior() { print("Behavior1"); } },
BLINKEN { void behavior() { print("Behavior2"); } },
NOD { void behavior() { print("Behavior3"); } };
abstract void behavior();
}

enum eee{
	ABC,
	DEF,
	GHY;
}

class NotClasses {
// void f1(LikeClasses.WINKEN instance) {} // 不能把枚举当类型使用(枚举项不是类)
	//void f2(eee.ABC a){}
	void f3(eee a){}
} /* Output:
Compiled from "NotClasses.java"
abstract class LikeClasses extends java.lang.Enum{
public static final LikeClasses WINKEN;

public static final LikeClasses BLINKEN;

public static final LikeClasses NOD;
...
*///:~
